let apiUrl = "http://192.168.88.102:3000";

const accountInfo = wx.getAccountInfoSync();
// env类型
const env = accountInfo.miniProgram.envVersion;
if (!env) {
	console.error("获取运行环境失败!");
}
const baseApi = {
	// 开发版
	develop: "http://192.168.88.102:8888", //公司
	// develop: "http://192.168.2.7:8888", //家
	// develop: "https://www.yydfsk.site", //线上
	// develop: "http://8.155.29.29:3000",//线上
	// 体验版
	trial: "https://www.yydfsk.site",
	// 正式版
	release: "https://www.yydfsk.site",
};

// request请求baseURL
apiUrl = baseApi[env];

module.exports = {
	HTTP_REQUEST_URL: apiUrl,

	HEADER: {
		"content-type": "application/json; charset=utf-8",
		"Form-type": "routine",
		"Accept-Language": "zh-CN",
	},
	// 密钥名称 请勿修改
	TOKENNAME: "Authorization",
};